package cn.itlaobing.spring.dao;

import java.util.List;

import cn.itlaobing.spring.entity.Teacher;

/**
 * 教师
 * @author 雪儿
 *
 */
public interface TeacherDao {
	/**
	 * 新增
	 * @param teacher
	 */
	public void addTeacher(Teacher teacher);
	/**
	 * 删除
	 * @param id
	 * @return
	 */
	public int deleteID(Long id);
	/**
	 * 修改
	 * @param teacher
	 * @return
	 */
	public int update(Teacher teacher);
	/**
	 * 全查询
	 * @return
	 */
	public List<Teacher> findAll();
	/**
	 * 单查询
	 * @param id
	 * @return
	 */
	public Teacher findById(Long id);
	
}
